package com.accp.ssmoa.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.accp.ssmoa.dao.RoleAndMenuMapper;
import com.accp.ssmoa.pojo.RoleAndMenuKey;
import com.accp.ssmoa.service.RoleMenuService;

@Service("roleMenuServiceImpl")
public class RoleMenuServiceImpl implements RoleMenuService {

	@Resource
	private RoleAndMenuMapper roleMenuDao;
	
	public int deleteByRoleId(Integer id) {
		
		return roleMenuDao.deleteById(id);
	}

	public int insertByList(List<RoleAndMenuKey> roleMenus) {
		
		return roleMenuDao.insertList(roleMenus);
	}

}
